<?php

	$template = new PHPTAL( '../tpl/admin/list_characters.tpl.php' );
	
	require_once('macro.php');
	
	/* navigation */
	$navArray[11]['parent']['class'] = 'active';
	$navArray[11]['child'][0]['class'] = 'active';
	$template->navArray = $navArray;
	
	/* loginDetails */
	$loginDetails = array();
	$loginDetails['userName'] = "Gopal Rana";
	$loginDetails['userImg'] = "/images/usr_img.jpg"; /* 25x25 */
	$loginDetails['profileLink'] = "";
	$template->loginDetails = $loginDetails;
	
	/* listing */
	$listing = array();
	for($i=0; $i<10; $i++){
		$listing[$i]['name'] = "Motu Patlu";
		$listing[$i]['image'] = "http://www.nickindia.com/images/show/thumb/74_flash&thumb_img.jpg";
		$listing[$i]['gamesCount'] = "15";
		$listing[$i]['videosCount'] = "18";
		$listing[$i]['status'] = "Active";
		$listing[$i]['editUrl'] = "";
		$listing[$i]['deleteUrl'] = "";
	}
	$template->listing = $listing;
	
	$template->echoExecute();